home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20021006-20030409
/
000121_dbecker@cpicorp.com_Mon Dec 2 13:13:16 EST 2002.msg
< prev
next >
Wrap
Text File
|
2003-04-08
|
2KB
|
45 lines
Article: 13902 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
From: dbecker@cpicorp.com (Derek Chen-Becker)
Newsgroups: comp.protocols.kermit.misc
Subject: Differences when kermit executes a script vs. Interactive mode?
Date: 2 Dec 2002 09:06:29 -0800
Organization: http://groups.google.com/
Lines: 27
Message-ID: <9c21afd5.0212020906.6963e3e5@posting.google.com>
NNTP-Posting-Host: 204.233.170.1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1038848790 12845 127.0.0.1 (2 Dec 2002 17:06:30 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 2 Dec 2002 17:06:30 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13902
Hi,
I've been looking through the newsgroups and "Using C-Kermit" for
help with an issue I'm having. I am writing a file transfer script
that I would like to execute out of a scheduler, but I've run into the
issue that arrays and functions behave differently depending on
whether I'm in interactive mode or if I'm running the script. For
example, the following fragment works fine if I execute it
interactively from kermit, but fails with "Array &f undefined" if I
run it in the script:
define \%r \ffiles(*,&f)
array copy &f &s
If I add something that dereferences the return code (\%r), it works
in both places:
define \%r \ffiles(*,&f)
echo Found \%r files
array copy &f &s
There are a couple other things that seem to be working interactively
but not from the script. I'm using c-kermit 8.0.206 on linux.
Thanks,
Derek
dbecker@cpicorp.com